﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using FwProject.Authorization.Users;
using FwProject.Comm.ExcelUtil;
using FwProject.Core.Car;
using FwProject.Core.DataFilterFactoryinfo;
using FwProject.Users.Dto;

namespace FwProject.Car.Dto
{
    [AutoMap(typeof(CarInfo))]
    [DisplayName(displayName:"汽车表")]
    public class CarInfoDto : Entity<Guid>,ICreationAudited
    {
      
       
        [Display(Name ="所属工厂")]
        public virtual Guid? FactoryinfoId { get; set; }
        [Display(Name = "车主编号")]
        public long EmployeeCarUserId { get; set; }
        [ExcelDateMember(IsMultiRow = false, IsMerged = false,IsClass =true)]
        [DisplayName(displayName: "汽车司机")]
        public UserDto CarUser { get; set; }

        [Display(Name = "车牌号")]
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "车牌号")]
        public string PlatesNumber { get; set; }
        [Display(Name = "汽车类型")]
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "汽车类型")]
        public CarTypeEnum CarType { get; set; } = CarTypeEnum.小型卡车;
        [Display(Name = "吨位")]
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "吨位")]
        public double ShoppingTon { get; set; } = 1.0;

        [Display(Name = "购买时间")]
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "购买时间")]
        public DateTime CarOld { get; set; }

        [Display(Name = "是否购买保险")]
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "是否购买保险")]
        public bool Insurance { get; set; } = true;
        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get ; set ; }
    }
}
